<?php
declare(strict_types=1);
/**
 * @project: 兔兔找图微信小程序
 * @author: kert
 * @date: 2023/5/16
 * @link: https://www.qqdeveloper.com/
 * @site: 微信搜索-兔兔找图
 */

namespace App\Http\Requests\Image;

use App\Http\Requests\BaseValidate;

class ImageUrlValidate extends BaseValidate
{
    public function rules(): array
    {
        return [
            "image_url" => "required|url",
        ];
    }

    public function messages(): array
    {
        return [
            "image_url.required" => "图片地址不能为空",
            "image_url.url" => "图片地址不合法",
        ];
    }
}
